import { MEDIA_TYPE } from '@/constant'

export const MAIN_VIEWER = 'MAIN_VIEWER'
export const TAG_LIST = 'TAG_LIST'
export const CREATOR = 'CREATOR'
export const TAG_VIEWER = 'TAG_VIEWER'
export const CREATOR_VIEWER = 'CREATOR_VIEWER'

/* 目前已棄用，之後看情況再移除 */
export const MEDIA_TOGGLE_TYPE = Object.freeze({
  GENERAL: 0, // 媒體切換為上方 tab
  SWITCHER: 1, // 媒體切換為一個下方的 switch，上方的 tab 要用來切換追蹤/推薦用
  NONE: 2, // 沒有媒體切換，顯示上一頁
})

export const MAIN_VIEWER_TYPE = Object.freeze({
  FORYOU: 1,
  VIDEO_PHOTO: 2,
  NONE: 3,
})

export const VIEWER_TAB_TYPE = Object.freeze({
  NONE: 0,
  VIDEO_PHOTO: 1,
  CREATOR: 2,
})

export const MEDIA_TYPE_LABELS = Object.freeze({
  [MEDIA_TYPE.FORYOU]: 'foryou',
  [MEDIA_TYPE.VIDEO]: 'video',
  [MEDIA_TYPE.PHOTO]: 'photo',
  [MEDIA_TYPE.SHOP]: 'shop',
  [MEDIA_TYPE.SUBS]: 'subs',
  [MEDIA_TYPE.FREE]: 'free',
})
